Warn if source not WGS 84.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 19 May 2005 01:39:03 +0000 (01:39 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 19 May 2005 01:39:03 +0000 (01:39 +0000)
gpsbabel/ozi.c

index d9471e5cd6941efc66c478fff0761beabae92d6a..39b6e45bb67050ccefa3c157fa3b24cafb4691b6 100644 (file)
@@ -4,7 +4,7 @@
 
     As described in OziExplorer Help File
 
-    Copyright (C) 2002 Robert Lipe, robertlipe@usa.net
+    Copyright (C) 2002-2005 Robert Lipe, robertlipe@usa.net
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -548,6 +548,13 @@ data_read(void)
                 ozi_objective = wptdata;
             }
         }
+
+        if (linecount == 2) {
+           if (case_ignore_strncmp(buff, "WGS 84", 6)) {
+               warning(MYNAME "Only supports reading WGS 84 datum, not '%s'\n", buff);
+           }
+       }
+
         if ((strlen(buff)) && (strstr(buff, ",") != NULL)) {
 
             wpt_tmp = waypt_new();